package cn.cosmosx.base.calc;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 贷款信息
 */
@ToString
@Getter
@Setter
@Accessors(chain = true)
public class Loan implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 期数
     */
    private Integer period;
    /**
     * 还款日
     */
    private LocalDate repaymentDate;
    /**
     * 月还款金额
     */
    private BigDecimal amount;
    /**
     * 月还款本金
     */
    private BigDecimal capital;
    /**
     * 月还款利息
     */
    private BigDecimal interest;
    /**
     * 剩余应还本金
     */
    private BigDecimal capitalBalance;
}
